package com.pjchat.pjchatclient.handlerImpl;

import java.io.BufferedReader;
import java.io.BufferedWriter;

import javax.swing.JFrame;

import com.ita.im.model.Unit;
import com.pjchat.pjchatclient.handler.BasicHandler;
import com.pjchat.pjchatclient.sender.ForwardSender;

public class HandlerForLogout extends BasicHandler {
	private static HandlerForLogout instance;

	private HandlerForLogout() {

	}

	public static HandlerForLogout getInstance() {
		if (instance == null) {
			instance = new HandlerForLogout();
		}
		return instance;
	}

	@Override
	public Unit doRequest(JFrame frame, Unit unit, BufferedReader br,
			BufferedWriter bw) {
		ForwardSender.send(bw, unit);
		return null;
	}

	@Override
	public Unit doResponse(JFrame frame, Unit unit, BufferedReader br,
			BufferedWriter bw) {
		return null;
	}

}
